import {
    certificationUoload,
    statisticsDetail,
    statisticsList,
    articleList,
    articleDetail,
} from "@/http/api.js"; //引入接口
const state = () => ({
    username: ""
});

const actions = {
    async certificationUoloadApi(store, params) {
        return await certificationUoload(params);
    },
    async statisticsDetApi(store, params) {
        return await statisticsDetail(params);
    },
    async statisticsApi(store, params) {
        return await statisticsList(params);
    },
    async articleApi(store, params) {
        return await articleList(params);
    }, 
    async articleDetApi(store, params) {
        return await articleDetail(params);
    },
}; //actions是vuex的内置对象  任意异步操作 说白了就是一个异步


export default {
    namespaced: true,
    state: state,
    actions //简写
}